From 21aa87829b06606692390207781f58edf6286318 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Wed, 18 Mar 2015 20:24:09 -0400 Subject: [PATCH] libxc: Fix xc_domain_get_tsc_info to return -1 instead of -Exx. We don't need to put fill errno because xc_hypercall_buffer_alloc fills the errno with the appropriate errno values and we just need to pass them up the stack. Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Ian Campbell --- tools/libxc/xc_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index 845d1d7722..2fed727aac 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -771,7 +771,7 @@ int xc_domain_get_tsc_info(xc_interface *xch, info = xc_hypercall_buffer_alloc(xch, info, sizeof(*info)); if ( info == NULL ) - return -ENOMEM; + return -1; domctl.cmd = XEN_DOMCTL_gettscinfo; domctl.domain = (domid_t)domid; -- 2.30.2